app.controller("Ctrl",function($scope,$http){
	$http.get("http://127.0.0.1:8080/index.json").success(function(data){
			$scope.fl = data[0].fl
             console.log($scope.fl)
	})
	//分类
	$scope.click = function(index){
		$scope.fl[index].aa=!$scope.fl[index].aa;
//		alert(index)
	}
	//模态框
	$scope.tan = false;
	$scope.cli = function(){
		$scope.tan = true;
	}
	$scope.quxiao = function(){
		$scope.tan = false;
	}
	//底部tab切换
	$scope.aa = "color";
	$scope.color1 = function(){
		$scope.aa = 'color';
		$scope.bb = 'color1';
		$scope.cc = 'color1';
	}
	$scope.color2 = function(){
		$scope.aa = 'color1';
		$scope.bb = 'color';
		$scope.cc = 'color1';
	}
	$scope.color3 = function(){
		$scope.aa = 'color1';
		$scope.bb = 'color1';
		$scope.cc = 'color';
	}
	//首页tab
	$scope.one="color11";
	$scope.one1 = function(){
		$scope.one = 'color11';
		$scope.two = 'color22';
	}
	$scope.two2 = function(){
		$scope.one = 'color22';
		$scope.two = 'color11';
	}
     //我的tab 
    $scope.border1="border1";
	$scope.love1 = function(){
		$scope.border1 = 'border1';
		$scope.border2 = 'border2';
	}
	$scope.love2 = function(){
		$scope.border1 = 'border2';
		$scope.border2 = 'border1';
	}
})